/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.just.dusin.ooii.component.standard;

import java.util.List;
import java.util.Properties;
import org.just.dusin.ooii.component.Sink;
import org.dusin.webcoal.exception.OOIIException;

/**
 *
 * @author Administrator
 */
public class ConsoleSink implements Sink{

    @Override
    public void process(String msg) throws OOIIException {
        System.out.println(msg);
    }

    @Override
    public void process(List<String> msgs) throws OOIIException{
        for(int i=0;i<msgs.size();i++){
            System.out.println(msgs.get(i));
        }
    }

    @Override
    public void initComponent(Properties props) {
        
    }

    @Override
    public void destroyComponent() throws Exception {
        
    }
    
}
